package com.example.sale.mybatis.mapper;

import com.example.sale.mybatis.entity.User;
import org.apache.ibatis.annotations.*;

import java.math.BigInteger;
import java.util.List;

@Mapper
public interface UserMapper {

    int insertUser(User user);

    User selectUserById(@Param("userId") BigInteger userId);

    User selectUserByUsername(@Param("username") String username);

    User selectUserByEmail(@Param("email") String email);

    List<User> selectUsers(User user);

    int updateUser(User user);

    int deleteUserById(@Param("userId") BigInteger userId);

}